FROM java:8-jdk

MAINTAINER tiangao tgshi@ctrip.com

COPY webflux.jar /app/start.jar

RUN echo "Asia/Shanghai" > /etc/timezone

ENV JAVA_OPTS=" -Xmx3G \
-Dcom.sun.management.jmxremote=true \
-Dcom.sun.management.jmxremote.port=51097 \
-Dcom.sun.management.jmxremote.rmi.port=51097 \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.local.only=false \
-Djava.rmi.server.hostname=10.32.34.31"

WORKDIR /app

EXPOSE 8080
EXPOSE 51097

ENTRYPOINT java ${JAVA_OPTS} -jar /app/start.jar
